home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
TECHNICA
/
AUTOCAD
/
H107.ZIP
/
APR91.ZIP
/
TIP647.LSP
< prev
next >
Wrap
Text File
|
1991-04-11
|
389b
|
17 lines
;TIP647.LSP Better Rotate (c)1991, Trevar Chapmon
(defun C:ROT ()
(setq SLCT (ssget))
(setq PTR (getpoint
"\nRotation base point "))
(setq PT1 (getpoint
"\nPoint to rotate to "))
(setq PT2 (getpoint
"\nPoint to rotate from "))
(setq ANGR (- (angle PT1 PTR)
(angle PT2 PTR)))
(setq ANG (/ (* ANGR 180) pi))
(command "ROTATE" SLCT "" PTR ANG)
(setq SLCT nil)
)